package com.android.job.logic;

import android.os.Handler;

import com.android.job.fusion.FusionCode;
import com.android.job.service.Request;
import com.android.job.service.request.SendResumeRequest;

public class SendResumeLogic
{
	private static SendResumeLogic instance;

	private final static String URL = "http://192.168.10.221:8080/employment/protocol.do";

	private SendResumeLogic()
	{

	}

	public synchronized static SendResumeLogic getInstance()
	{
		if (instance == null)
		{
			instance = new SendResumeLogic();
		}
		return instance;
	}

	public Request sendResume(Handler handler, String personnelId,
			String companyId ,String postId)
	{
		SendResumeRequest sendResume = new SendResumeRequest(handler, FusionCode.URL);
		sendResume.setValues(personnelId, companyId ,postId);
		sendResume.getJSONResponse();
		return sendResume;
	}

}
